<template>
  <a-config-provider :locale="antLocale">
    <slot />
  </a-config-provider>
</template>

<script setup>
import "reset-css";
import { computed } from "vue";
import { useI18n } from "vue-i18n";
import enUS from 'ant-design-vue/es/locale/en_US';
import zhCN from 'ant-design-vue/es/locale/zh_CN';

const { locale } = useI18n();
const antLocale = computed(() => (locale.value === "zh" ? zhCN : enUS));
</script>

<style>
@import "@/common/common.less";
</style>
